const fs = require("fs");
const server = require("http").createServer();
server.on("request", (req, res) => {
  // fs.readFile('./big.file', (err, data)=>{
  // if(err) {
  // console.log(err);
  //}else{
  //res.end(data);
  // }
  //})
  const src = fs.createReadStream("./big.file");
  src.pipe(res);
});
server.listen(8123);
